Hacker News new | ask | show | jobs
by lrasinen 57 days ago
One of these years I'm going to make a Finnish programming language that enforces the correct case in arguments. And I don't mean silly arguments like camelCase vs kebab-case, I mean grammar.

Some examples to illustrate:

  tiedosto on "foo.txt" avattuna
  tulostin on PRN1
  kirjoita(tiedostoon, "a")
  kirjoita(tulostimelle, "b")
Job security for DECADES.
4 comments

This is equal parts brilliant and demented. Thank you.

  syöte olkoon vakiosyöte

  yritä
    tee syötteen kullekin alkiolle:
      käsittele(alkio)
  paitsi poikkeustilanteessa liukulukuylivuoto:
    kirjoita(virhetulosteeseen, "liukulukuylivuoto")
  muutoin:
    kirjoita(virhetulosteeseen, "odottamaton poikkeus")
Remember to be careful with looping lest you create an ikikieriö.
Like a more devious Lingua::Romana::Perligata?

https://metacpan.org/dist/Lingua-Romana-Perligata/view/lib/L...

Perhaps more inspired by the INTERCAL's PLEASE.
And with all the maths in balanced ternary
And call it AivotP*rkele?