DEV Community

Discussion on: The Coolest Programming Language Features

Collapse
 
cout970 profile image
cout970 • Edited

yes, basically, but it has a lot more uses!, for example there is a library that allows you to write html using extension lambdas and it looks like this:

html {
  head {
    title { +"Page title" }
  }
  body {
    h1{ + "Cool article" }
    p { +"article content" }
  }
}

they have the same flexibility as normal lambdas but with a lot less boilerplate

Thread Thread
 
renegadecoder94 profile image
Jeremy Grifski

Wow that’s elegant. I imagine you get the added benefit of type checking and whatnot, right?

Thread Thread
 
cout970 profile image
cout970

Yes!