Note that there are some explanatory texts on larger screens.

plurals
  1. USWilliam Billingsley
    primarykey
    data
    text
    plurals
    1. This table or related slice is empty.
    1. COFortunately most IDEs are capable of distinguishing it! Implicit conversions get used quite a lot in Scala. If you're just reading the text file, it could be confusing ("where does that method come from") but with appropriate tool support you should be able to find your way around, at which point Scala can be beautifully meaningful and concise. (eg, 20.seconds is much more readable than `new DurationInt(20).seconds()` so long as you know how it does it)
      singulars
    2. COQuick explanation of a "static context" is that often you want to have a function that relates to a data-type but that doesnt 'belong' to a specific instance. For a factory method (apply above), clearly you haven't yet got an instance to call the function on. But also, say 'Complex.average(num1, num2, ...)', where you're applying it to many instances. The companion object provides a namespace to gather those functions together with the datatype. The compiler will also search the companion object for implicit conversions -- functions to convert other types of data to or from this type.
      singulars
    3. COIt is possible I'm misunderstanding you, but it seems to me that whether you are altering the return type or altering a "next location" destination reference, the visitor code always sets the location for the result of the next (deeper) call. (See low-quality code added to answer.)
      singulars
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload