APL64 for C# Developers

This topic is specifically for discussions on the new APL64 Project currently in development. This topic is open for all to browse. However, to post, one must have a registered account on the APLDN forum only available to APL+Win licensee under a current APL+Win Subscription.

Moderators: Tech Support, phpbb_admin

APL64 for C# Developers

Postby Ajay Askoolum » October 6th, 2018, 1:11 pm

C#7.0 announces a new feature called Deconstruction. It works like this:
Code: Select all
   private static (string, int, double) QueryCityData(string name)
   {
      if (name == "New York City")
         return (name, 8175133, 468.48);

      return ("", 0, 0);
   }
This is like an APL function returning a nested vector of 3 elements. The elements of that vector is assigned to three individual variables, thus
Code: Select all
(string city, int population, double area) = QueryCityData("New York City");
Now, we have:

1. Been doing this for years.
2. We can assign matrices, not just scalar elements.
3. We do not have to bother with the types of data involved ... like C#'s var.

Does APL+Win need a new manual, APL+Win for C# Developers?

It could take the topics that anyone learning C# will learn and demonstrate the topics with snippets of C# code and their APL+Win counterpart.

Might it work to attract new talent to APL+Win?
Ajay Askoolum
 
Posts: 710
Joined: February 22nd, 2007, 2:16 am
Location: United Kingdom

Re: APL64 for C# Developers

Postby Davin Church » October 8th, 2018, 2:16 am

That sounds like it might be worth a shot to me. Wanna take on the challenge of writing it?
Davin Church
 
Posts: 504
Joined: February 24th, 2007, 1:46 am

Re: APL64 for C# Developers

Postby Ajay Askoolum » October 8th, 2018, 1:50 pm

Perhaps!

The groundwork for such a task requires:

1. brainstorming APL developers to come up with a list of things APL does that can appeal to C# developers.
2. for every cutting edge feature you need either to find its equivalent (name) in C# or if it does not exist to give it a name. This requires marketing expertise. For instance what name would you give this:

((0=,a))/,a)<-- 5

such that it has appeal?
3. would need to translate widely loved C# features into APL - this is a big job.

This could be a community effort. Might it?
Ajay Askoolum
 
Posts: 710
Joined: February 22nd, 2007, 2:16 am
Location: United Kingdom

Re: APL64 for C# Developers

Postby Davin Church » October 8th, 2018, 2:26 pm

Sure, but the problem here is that we're all APL people but few of us have the necessary C# expertise to do a good job for translation. I'm only barely conversant with it, so I wouldn't be able to contribute anything useful at all.
Davin Church
 
Posts: 504
Joined: February 24th, 2007, 1:46 am


Return to APL64 Project

Who is online

Users browsing this forum: No registered users and 1 guest

cron