-
-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Introduction of Interfaces quite fast #49
Comments
I agree. In fact, I think the notion of interfaces might be outside the scope of a beginner course. I rarely use interfaces explicitly, and many interfaces in julia are poorly specified. That said, the array interface is one of the well-specified ones, and pretty fundamental to a lot of science-relevant code. Understanding it can be quite a boon, since many types implement I definitely think that this section could use a bit more explication, and could be part of a broader re-write of this section (along the lines of #50 |
@all-contributors add @psteinb for ideas |
I've put up a pull request to add @psteinb! 🎉 |
@all-contributors add @kescobo for ideas |
The following lines from 06-control-flow.md#L44 to 06-control-flow.md#L62 introduce interfaces quite fast.
I think this might put learners off, especially those that come with a background of scripting languages mostly. I personally would encourage to invest some text to introduce the notion of an interface more slowly. Maybe using a number (think interface
Real
) as an example as discussed in the first episode on typing.The text was updated successfully, but these errors were encountered: