3 ms·
Yeah, I had a bumpy transition from C to Forth. Now I can write idiomatic C, Forth, Erlang, OCaml, and Ada/SPARK, but C -> Forth was the most difficult one, I w
by johnisgood 6y ago
Yeah, I had a bumpy transition from C to Forth. Now I can write idiomatic C, Forth, Erlang, OCaml, and Ada/SPARK, but C -> Forth was the most difficult one, I would say.
As for C++: I have zero clue about it. Occasionally a student who learns C++ comes to me for help and I end up being useful and help her (by RTFM), but other than that, nothing much really.
- winrid 6y agoOut of the list you gave, when would you chose to use Ada vs the others?
- bitwize 6y agoJust think of Ada as "boomer Rust". It's great for when you have a well-specified project that can be coded in a top-down fashion, and correctness is a paramount concern. It enforces correctness through a very strong type system and a pointer model that forbids aliasing by default (pointers must be declared as 'aliased' to alias them), and the SPARK extensions provide even more guarantees, allowing you to formally specify contracts which the compiler will ensure are fulfilled.
- winrid 6y agoThanks for the explanation. I heard about its type safety, definitely want to try it on some problem at some point.
- MaxBarraclough 6y agoThat's quite a tour of programming languages! Would you mind commenting on what you did with them?