[ 
https://issues.apache.org/jira/browse/NETBEANS-4568?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Pieter van den Hombergh updated NETBEANS-4568:
----------------------------------------------
    Description: 
When you build up a stream with several mapping operations
it would be nice to see what the intermediate types are, not only when 
completing,
but also when reading the code.
It will be very helpful when exploring an API any when studying th concept.


example (the addition shown as trailing comment.)
{{
return Files.lines( filePath )      // Stream<String>
                .filter( this.lineFilter ) // Stream<String> coan be ommited 
becasue no type change
                .map( s -> s.split( this.splitString ) ) // Stream<String[]>
                .filter( rowFilter )       // omitted, stream type same
                .map( creator )    // Stream<T>
;
}}

Other use cases are frameworks with fluent APIs such as AssertJ to name one.
After having some experience with it, it will be a tremendous boon for code 
review.

  was:
When you build up a stream with several mapping operations
it would be nice to see what the intermediate types are, not only when 
completing,
but also when reading the code.
It will be very helpful when exploring an API any when studying th concept.


example (the addition shown as trailing comment.)
{{
return Files.lines( filePath )      // Stream<String>
                .filter( this.lineFilter ) // Stream<String> coan be ommited 
becasue no type change
                .map( s -> s.split( this.splitString ) ) // Stream<String[]>
                .filter( rowFilter )       // omitted, stream type same
                .map( creator )    // Stream<T>
;
}}

Other use cases are frameworks with fluent APIs such as AssertJ to name one.


> extend inline hints to reader support, use case fluent api ussage such as 
> streams
> ---------------------------------------------------------------------------------
>
>                 Key: NETBEANS-4568
>                 URL: https://issues.apache.org/jira/browse/NETBEANS-4568
>             Project: NetBeans
>          Issue Type: New Feature
>          Components: editor - Hints &amp; Annotations
>            Reporter: Pieter van den Hombergh
>            Priority: Minor
>
> When you build up a stream with several mapping operations
> it would be nice to see what the intermediate types are, not only when 
> completing,
> but also when reading the code.
> It will be very helpful when exploring an API any when studying th concept.
> example (the addition shown as trailing comment.)
> {{
> return Files.lines( filePath )      // Stream<String>
>                 .filter( this.lineFilter ) // Stream<String> coan be ommited 
> becasue no type change
>                 .map( s -> s.split( this.splitString ) ) // Stream<String[]>
>                 .filter( rowFilter )       // omitted, stream type same
>                 .map( creator )    // Stream<T>
> ;
> }}
> Other use cases are frameworks with fluent APIs such as AssertJ to name one.
> After having some experience with it, it will be a tremendous boon for code 
> review.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org
For additional commands, e-mail: commits-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to