nice struct syntax
I am curious how you would change the struct syntax?
HN user
nice struct syntax
I am curious how you would change the struct syntax?
- Is there a LISP dialect that doesn't suffer from this problem?
I am not sure what problem you are referring to. Racket has been actively developed since the mid-90s.
No, it is dynamically typed. The annotations work like run time contracts.
The easiest way would be to rename the imported names
#lang rhombus
import rhombus:
only: fun ...
rename fun as fn
rename ... as …
open
fn all_same([str0, str, …]):
all(str0 == str, …)Python with extensible syntax and not afraid of functional programming.
You may be able to run it with Xvfb.
https://github.com/jeapostrophe/racket-langserver/issues/45 https://github.com/Eugleo/magic-racket/issues/29
You're critique is valid. `length` `vector-length` and `string-length` are from the very monomorphic old Scheme libraries.
The Racket module system does provide ways to use the names you want without having to change the core language. The `collections` package (https://pkgs.racket-lang.org/package/collections) also smooths over some of these issues.
Matthew has been working on a prototype (https://github.com/racket/rhombus-brainstorming/pull/163) that works on the current snapshot version of Racket.
It is possible to use to write some basic things and most existing Racket libraries are usable with the prototype.