Inline imports redivivus

max haughton maxhaton at gmail.com
Sun Mar 6 06:06:59 UTC 2022


On Sunday, 6 March 2022 at 05:21:12 UTC, Zach Tollen wrote:
> On Tuesday, 27 July 2021 at 09:20:25 UTC, Petar Kirov 
> [ZombineDev] wrote:
>> On Tuesday, 27 July 2021 at 05:07:32 UTC, ag0aep6g wrote:
>>> On 26.07.21 14:55, Andrei Alexandrescu wrote:
>>>> On 7/24/21 3:52 PM, qxi wrote:
>>> [...]
>>>>> import[std.datetime].SysTime
>>>>> import{std.datetime}.SysTime
>>>>> import std.datetime..SysTime
>>>>> import std.datetime::SysTime
>>>>> std.datetime::SysTime
>>>> 
>>>> import:std.datetime.SysTime
>>>
>>> module(std.datetime).SysTime
>>
>> That's the best suggestion so far.
>
> No one suggested:
>
> import.std.datetime:SysTime
>
> Seems concise and grammatically unambiguous.

`import.identifier` may be grammatically unambiguous but is 
potentially the opposite of that for the humans.

Visual noise is underrated - *code* should be concise but syntax 
should be loud.


More information about the Digitalmars-d mailing list