Hasty Briefsbeta

Bilingual

Show HN: Gojju, a Fun Programming Language

4 months ago
  • #programming
  • #syntax
  • #languages
  • Introduction to various programming languages including Python, Ruby, Haskell, Perl, and JavaScript.
  • Example of installing a package using pip: 'pip install gojju'.
  • Python list comprehension example: '[x*x for x in range(10)]'.
  • Python list slicing example: 'list[1:3]'.
  • Ruby string interpolation example: '"Hello #{name}!"'.
  • Ruby conditional print example: 'print "yes" if happy'.
  • Example of function chaining in some languages: 'x |> double |> sum'.
  • Haskell lambda function example: '\x -> x * 2'.
  • Ruby control structures: 'unless' and 'until'.
  • Perl regular expression example: '/pattern/flags'.
  • JavaScript arrow function example: '(x) => x * 2'.
  • JavaScript array spread example: '[...a, ...b]'.
  • Functional programming concepts: 'compose', 'curry', 'pipe'.