flink-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Till Rohrmann <trohrm...@apache.org>
Subject Re: [DISCUSS] Include import statements in documentation code examples
Date Wed, 18 Nov 2015 11:18:03 GMT
I agree that it would be nice to be able to simply copy paste examples from
Flink's website. But it would also be nice if one could hide the imports
because they usually take a lot of space.

Cheers,
Till

On Wed, Nov 18, 2015 at 12:09 PM, Robert Metzger <rmetzger@apache.org>
wrote:

> Hi,
>
> I helped somebody yesterday on SO [1] who had issues with the Scala API
> because he was importing the classes from the Java API.
> Somebody else complained about this issue as well in the comments below the
> documentation [2], and I think both users are right: Its an unnecessary
> obstacle when learning Flink that users have to figure out which class to
> import.
>
> How about adding import statements to the examples?
> Is there a nicer way of solving the problem?
>
>
> Regards,
> Robert
>
>
>
> [1] http://stackoverflow.com/a/33721528/568695
> [2]:
>
> https://ci.apache.org/projects/flink/flink-docs-release-0.10/apis/streaming_guide.html#comment-2365998014
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message