Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Meet Crystal language in its birthday. It is compiled and has ruby like syntax. Parent comment
# In a foo.cr file fun init_foo = Init_foo : Void puts "Init foo! :-)" end
bin/crystal foo.cr -o foo.bundle
$ irb irb(main):001:0> require "./foo" Init foo! :-) => true
So, yes, we are not that far from allow you to write Ruby extensions in Crystal.
We'd also like to write Objective-C code that way, and also Erlang extensions.
There are no comments on this comment yet.
So, yes, we are not that far from allow you to write Ruby extensions in Crystal.
We'd also like to write Objective-C code that way, and also Erlang extensions.