Skip to content

The :: val shadows the :: List constructor #189

@coreyoconnor

Description

@coreyoconnor

This :: value: https://github.com/eaplatanios/tensorflow_scala/blob/master/modules/api/src/main/scala/org/platanios/tensorflow/api/package.scala#L80

Will shadow the :: List constructor. The List is a commonly used type from the Scala predef so removing the usability of :: is unexpected.

for example:

import org.platanios.tensorflow.api._
val oh :: no = List(1, 2)

will fail with

cmd0.sc:1: value :: is not a case class, nor does it have an unapply/unapplySeq member

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions