Download Reference Manual
The Developer's Library for D
About Wiki Forums Source Search Contact

Ticket #1060 (closed defect: wontfix)

Opened 16 years ago

Last modified 14 years ago

println is missing

Reported by: baxissimo Assigned to: kris
Priority: normal Milestone: 2.0
Component: IO Version: 0.99.5 Jascha
Keywords: triage Cc:

Description

The Print api should be made more orthogonal by including a println function.

Then you would have a nice grid:

             no nl      with nl
             ------     --------
plain     :  print      println
formatted :  format     formatln

Change History

05/24/08 18:46:56 changed by larsivi

  • keywords set to triage.

05/26/08 04:02:26 changed by kris

  • status changed from new to assigned.
  • milestone changed from 0.99.7 to 2.0.

it's not there due to print() being aliased as opCall(), since there's no way to add an opCallln()

Not ideal, we know

11/09/09 05:07:18 changed by kris

  • status changed from assigned to closed.
  • resolution set to wontfix.

given the above, I can't think how we could fix this

(follow-up: ↓ 6 ) 11/09/09 16:44:09 changed by baxissimo

Y'know you could just /not have/ an opCall-like alias for println. I'm not sure where you even came up with the idea that println should have an opCall-like alias. It's quite an absurd argument. You might as well remove format() too, because it's kinda like print() and yet there's no opCallFormatted().

11/09/09 18:33:49 changed by kris

removing it would break a lot of code, and it came about due to ppl moaning about having to type ".format" ... shit happens :/

(in reply to: ↑ 4 ) 11/09/09 20:39:38 changed by kris

Replying to baxissimo:

Y'know you could just /not have/ an opCall-like alias for println. I'm not sure where you even came up with the idea that println should have an opCall-like alias. It's quite an absurd argument. You might as well remove format() too, because it's kinda like print() and yet there's no opCallFormatted().

To be clear, it was a mistake