Hey guys

Hey guys,

Have someone suggested a Delphi syntax for pattern matching language support before?
Something like Scala, Haskell or even C#7 support.

Thanks :D

Comments

  1. I'm not sure what you mean - something like regular expressions? Delphi has a PCRE-compatible library inbuilt I think.

    ReplyDelete
  2. David Millington Sorry, I was lazy again hihihihi :D I meant something like Scala or C#7's pattern matching syntax.

    ReplyDelete
  3. i.e.: https://github.com/dotnet/roslyn/issues/206
    which looks nice - but a challenge to fit into something pascalish?

    ReplyDelete
  4. Lars Fosdal I think Scala pattern matching looks really pascalish: https://kerflyn.wordpress.com/2011/02/14/playing-with-scalas-pattern-matching/

    But getting so far in Delphi would require the language support FP features. However support for strings or type in case statements would already be a huge improvement.

    ReplyDelete
  5. I have no idea about how Delphi would implement pattern matching support in a pascalish way :D, I would love to see suggestions :D

    ReplyDelete
  6. Good luck getting any sort of advanced language change any time soon.. how many years have we been waiting for lamdas, ternary operator and a buch ofther features that could reduce cermony... not holding my breath.

    ReplyDelete

Post a Comment