needlesslygrim
Joined 3 years ago
Karma
63
Submissions
37
Member since
Aug 9
Joined 3 years ago
Swift is a nice language, and it's new support for the bare necessity of affine types is a good step forward, but it's not at all comparable with Rust.
Doesn't most modern Erlang code use binaries instead of charlists? Elixir and Gleam certainly do.
Could you give some examples?
[1]: https://doc.rust-lang.org/reference/statements.html
[2]: https://play.rust-lang.org/?version=stable&mode=debug&editio...
On the other hand, I've found normal threading in Rust quite simple (generally using a thread pool).
Thanks for the link to the LCF text though :^)
pub fn play<lifetime p>(in out self, player: mut ref AnimationPlayer lifetime p, new_animation: AnimationNodeIndex, transition_duration: Duration) -> mut ref AnimationPlayer lifetime p
But, this is still confusing! Let's remove even more symbols, and make the syntax more obvious by removing abbreviations: PUBLIC FUNCTION Play
LIFETIMES
P
PARAMETERS
IN OUT Self
Player AS MUTABLE REFERENCE TO AnimationPlayer WITH LIFETIME P
NewAnimation AS AnimationNodeIndex
TransititionDuration AS Duration
RETURNS MUTABLE REFERENCE TO ActiveAnimation
BEGIN
...
END
IMO, using keywords instead of symbols for references, lifetimes, etc, would just make Rust overly verbose, and there's a reason BCPL used braces instead of BEGIN/END :^)
Does ZGC not also have an incremental marking phase?