#rocketlang — Public Fediverse posts
Live and recent posts from across the Fediverse tagged #rocketlang, aggregated by home.social.
-
My pet programming language, #Rocket, now supports a simple "raise" statement by which you can raise exceptions.
E.g.:
```
raise StopIteration()
```The parenthesis can be omitted, too, in which case a new instance of the exception will be created with no parameters.
So far, exceptions could only be thrown by built-in functionality such as integer division (e.g. `1 \\ 0`). To make exception properly accessible in user-written code, I had to replace some "language magic" to make stuff properly accessible in the code.
#programming #programminglanguage #programming_languages #programminglanguages #RocketLang