Elektrine lite

← Feed

@oots@infosec.exchange

Post #3733704

2026-07-11 06:30 UTC

#RocketLang update: Yesterday I implemented typecasting (with runtime checks), so you can now write: ``` x = cast_to[T](y) ``` where `T` is the target type. This required first implementing function templates (generic functions) at all, that's another new feature. As a consequence, using the `cast_to` functions, it's now possible to call `dir()` on all types, including `Type` itself. That's one step closer to my current goal of implementing a unit-testing library: When you get a test class (inheriting from `unittest.TestCase`) you have to find it's methods. That's where `dir()` comes in.

Replies (0)

No replies.