You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pivot.apache.org by "Sandro Martini (JIRA)" <ji...@apache.org> on 2015/07/14 13:08:04 UTC

[jira] [Comment Edited] (PIVOT-799) extending Pivot collections

    [ https://issues.apache.org/jira/browse/PIVOT-799?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14624884#comment-14624884 ] 

Sandro Martini edited comment on PIVOT-799 at 7/14/15 11:08 AM:
----------------------------------------------------------------

Just committed last updates to finish initial version of Option (Some/None) and Try (Success/Failure). I tried to stay near to Scala API, but without its syntactic sugar here (still with Java 7) we can't do much more, maybe later with Java 8.

Note that these small improvements are here just to start explore how to work in a different way on data structures (and control flow) could be useful even with Pivot.

A second part of these improvements could be fill the MonadicOperations interface (now empty) with real Functional/Monadic methods (map, flatMap/flatten, filter, etc) ... but maybe this could go in a new issue (related with this) but I'm not sure if for 2.1 or 2.5.

Tell me what you think.



was (Author: smartini):
Just committed some updates, I hope to finish initial implementation soon.

Tell me what you think.


> extending Pivot collections
> ---------------------------
>
>                 Key: PIVOT-799
>                 URL: https://issues.apache.org/jira/browse/PIVOT-799
>             Project: Pivot
>          Issue Type: Improvement
>          Components: core-collections
>            Reporter: Sandro Martini
>            Assignee: Sandro Martini
>            Priority: Minor
>             Fix For: 2.5, 2.1
>
>         Attachments: Monad_sample_revised.groovy, PIVOT-799_functions_and_options(initial).patch
>
>
> Add some usuful methods to Pivot Collections like those needed to process all elements, going more "function style", like addAll, contains, etc ...
> To simplify usage from people coming from other languages, try to align to other languages names/conventions (for what is possible) , like Scala, C# .
> Verify even if add a interface (defining a single method) that could be passed to some methods to contain logic for processing all elements (like the apply() in Scala), and chose a right name for it (maybe function or other similar).
> Some info here:
> http://apache-pivot-developers.417237.n3.nabble.com/Some-idea-on-extending-Pivot-collections-td3321472.html
> But for more changes in Collections (still to be discussed), wait the 3.0 ...



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)