PascalABC.NET: Difference between revisions

Content deleted Content added
History of PascalABC.NET: Replaced slightly edited example with a snippet from the source cited
Line 123:
</syntaxhighlight>
In the book "How To Program Effectively In Delphi"<ref>{{Cite book |author=Kevin R. Bond |title=How to Program Effectively in Delphi for AS/A Level Computer Science |publisher=Educational Computing Services Ltd |year=2021 |isbn=9780992753603 |chapter=Chapter 44. Anonymous methods}}</ref> and in the corresponding video tutorials,<ref name=":0">{{Cite web |author=Kevin Bond |title=How to Program Effectively in Delphi. Lesson 44. Part 1 |url=https://www.youtube.com/watch?v=RBlg-ItyyTA&t=377s |access-date=2023-04-04 |website=YouTube |lang=en}}</ref><ref>{{Cite web |title=Delphi Boot Camp 2022 - Delphi and functional programming using anonymous methods |url=https://www.youtube.com/watch?v=OmregYuqLU8&t=1640s |access-date=2023-04-04 |website=YouTube |lang=en}}</ref> Dr. Kevin Bond, a programmer and a Computer Science teaching specialist,<ref>{{Cite web|lang=en|url=https://www.educational-computing.com/DelphiBook/KRBsBriefBiography.pdf|title=Brief biography Dr Kevin R Bond|website=Educational Computing Services Ltd}}</ref> notes that PascalABC.NET has powerful functional programming capabilities which are missing in Delphi. As an example, [[Partial application|partial function application]] is demonstrated:<syntaxhighlight lang="delphi">
var f: realinteger -> realinteger -> realinteger := x -> y -> x + y;
##
PrintWriteln(f(2)(36));
var f: real -> real -> real := x -> y -> x + y;
 
Print(f(2)(3));
</syntaxhighlight>