LINQ… what is LINQ? Well its a term used in C# which means Language Integrated Query. Next version of kbmMW will support our own variant of LINQ.

LINQ… what is LINQ? Well its a term used in C# which means Language Integrated Query. Next version of kbmMW will support our own variant of LINQ.
http://c4d.asuscomm.com/wordpress/2018/01/30/kbmmw-linq-1/

Comments

  1. This is more like a fluent query interface. The fact that in sl:=Linq.Using(lst).Sort('Name').AsStrings('Name','Age') the fields are indicated as strings ('name','age') breaks most of the C# linq benefits, which is compile-time check of field names and type - where using string identifiers will let an error like 'name2' be raised only at compile time. what Stefan Glienke wrote above states the reality of the Delphi compiler.

    ReplyDelete
  2. A. Bouchez Which I dont deny... I actually did write that its not possible to make true to the word LINQ with the current Delphi compiler. However since Googling is an accepted word for general web searching, Im really not afraid of calling what kbmMW now supports (and similar variants) for Linq. The overall goal is the same, although I know that C# Linq has some other features that is not possible to do at all without compiler support.

    ReplyDelete
  3. a `NameOf` functionality would make a lot of fluent stuff so much more fluent.

    ReplyDelete

Post a Comment