Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

No real thoughts on the language yet, other than looks interesting and modern.

But, that website has one of the smoothest on boarding experience I've ever seen for a new language. From the inline REPL (with built in tutorial), to the code definition section, its insanely practical. Every new (& old) language should have a website and onboarding experience like this one.



No kidding. It went from the most barebones "Under Construction, check back later" website possible to one of the best proglang homepages I've ever seen.


I really like that 'fast', 'friendly' and 'functional' all link directly to long, substantive explanations of the goals and decisions related to those qualities.


For in-browser tutorials, Haskell does it on the main page, too:

https://www.haskell.org/

For web UI, I always thought QisKit set the bar pretty high. It's intuitive and informative:

https://qiskit.org/


Svelte does a pretty good job too.

https://svelte.dev/


One thing I had to hunt for was what the backslash means in the first examples. Especially as it seems to be used for both string interpolation and function definition.

But other than that great to have a quite good idea of the language in just a few seconds.


It's both string interpolation and (anonymous) function definition.

    # Function Definition:
    addAndStringify = \num1, num2 ->
        Num.toStr (num1 + num2)

    # String Interpolation:
    "\(greeting) there, \(audience)!"
    # desugars to
    Str.concat greeting (Str.concat " there, " (Str.concat audience "!"))
https://www.roc-lang.org/tutorial


Yes indeed! I love this web page. Sleek and very upfront with everything. Great job team!! Would love to help in any way.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: