[Issue 18618] templated functions should in general have their attributes inferred
https://issues.dlang.org/show_bug.cgi?id=18618 Iain Buclaw changed: What|Removed |Added Priority|P1 |P4 --
[Issue 18618] templated functions should in general have their attributes inferred
https://issues.dlang.org/show_bug.cgi?id=18618 --- Comment #2 from Carsten Blüggel--- (In reply to Jonathan M Davis from comment #1) > Templated functions should have their attributes inferred when whether > attributes make sense depend on the template arguments (which the often do). > However, if the attributes don't depend on the template arguments, then they > really should be explicit. Whether any of the ones listed should have > attributes inferred which currently are explicit, I don't know (I'd have to > study them to know), and it's quite possible that all of the attributes > listed here should be removed, but I don't think that it's a good policy to > just not put attributes on templated functions. Whether they should be there > or not depends on whether they depend on the template arguments. Your guideline is new for me (but makes sense to me). Please, add this to https://dlang.org/dstyle.html, which "misguided" me. --
[Issue 18618] templated functions should in general have their attributes inferred
https://issues.dlang.org/show_bug.cgi?id=18618 Jonathan M Davischanged: What|Removed |Added CC||issues.dl...@jmdavisprog.co ||m --- Comment #1 from Jonathan M Davis --- Templated functions should have their attributes inferred when whether attributes make sense depend on the template arguments (which the often do). However, if the attributes don't depend on the template arguments, then they really should be explicit. Whether any of the ones listed should have attributes inferred which currently are explicit, I don't know (I'd have to study them to know), and it's quite possible that all of the attributes listed here should be removed, but I don't think that it's a good policy to just not put attributes on templated functions. Whether they should be there or not depends on whether they depend on the template arguments. --
[Issue 18618] templated functions should in general have their attributes inferred
https://issues.dlang.org/show_bug.cgi?id=18618 Carsten Blüggelchanged: What|Removed |Added CC||chi...@posteo.net --
[Issue 18618] templated functions should in general have their attributes inferred
https://issues.dlang.org/show_bug.cgi?id=18618 Timothee Courchanged: What|Removed |Added CC||greensunn...@gmail.com, ||timothee.co...@gmail.com --