Skip to content

mixin - statement is confusing #869

@vsacheti

Description

@vsacheti

def foreach(f: T => Unit): Unit = while (hasNext) f(next())

This should be explained more clearly. Currently this syntax is very confusing to a new learner of scala.

This is part of this page - http://docs.scala-lang.org/tour/mixin-class-composition.html

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions