guest271314 (2019-06-14T20:31:42.000Z)
guest271314 at gmail.com (2019-06-14T20:52:30.480Z)
Am neither for nor against the proposal. Do not entertain "like"s or "dislike"s in any field of endeavor. Am certainly not in a position to prohibit anything relevant JavaScript. Do what thou wilt shall be the whole of the Law. Have yet to view a case where code will be "broken" by ```nameof``` not being a JavaScript feature. "robustness", as already mentioned, is a subjective adjective that is not capable of being objectively evaluated as to code itself. That description is based on preference or choice. In lieu of the proposal being specificed, use the posted code example of ```Object.keys()``` that "works". ``` function func1({userName = void 0} = {}) { console.assert(userName !== undefined, [{userName}, "property needs to be defined"]) } ``` provides a direct notification that the property value is required to be defined - though ```nameof``` will not prevent the value from being set as ```"undefined"``` or ```null``` or an empty string ```""```, or a ```WeakMap```, etc., for which ```nameof``` does not solve the issue of certain specific sets of _characters_ being required as a value of the property. Note that the example code of "Function guard" posted thus far does not first check if ```options``` is passed at all, for which ```nameof``` will not provide any asssitance. Usually try to meet requirement by means already available (implemented and shipped) in FOSS browsers. Have no interest in TypeScript (or, in general, any third-party JavaScript library not shipped with FOSS browsers) or using an IDE (which does not substitute for actually testing the code in the environment outside the confines of an IDE, where the actual implementation can vary _widely_ from the published specification and between different environments which purport to have implemented a given specification). FWIW, have no objection to the proposal.
guest271314 at gmail.com (2019-06-14T20:50:13.648Z)
Am neither for nor against the proposal. Do not entertain "like"s or "dislike"s in any field of endeavor. Am certainly not in a position to prohibit anything relevant JavaScript. Do what thou wilt shall be the whole of the Law. Have yet to view a case where code will be "broken" by ```nameof``` not being a JavaScript feature. "robustness", as already mentioned, is a subjective adjective that is not capable of being objectively evaluated as to code itself. That description is based on preference or choice. In lieu of the proposal being specificed, use the posted code example of ```Object.keys()``` that "works". ``` function func1({userName = void 0} = {}) { console.assert(userName !== undefined, [{userName}, "property needs to be defined"]) } ``` provides a direct notification that the property value is required to be defined - though ````nameof``` will not prevent the value from being set as ```"undefined"``` or ```null``` or an empty string ```""```, or a ```WeakMap```, etc., for which ```nameof``` does not solve the issue of certain specific sets of _characters_ being required as a value of the property. Note that the example code of "Function guard" posted thus far does not first check if ```options``` is passed at all, for which ```nameof``` will not provide any asssitance. Usually try to meet requirement by means already available (implemented and shipped) in FOSS browsers. Have no interest in TypeScript (or, in general, any third-party JavaScript library not shipped with FOSS browsers) or using an IDE (which does not substitute for actually testing the code in the environment outside the confines of an IDE, where the actual implementation can vary _widely_ from the published specification and between different environments which purport to have implemented a given specification). FWIW, have no objection to the proposal.
guest271314 at gmail.com (2019-06-14T20:46:34.684Z)
Am neither for nor against the proposal. Do not entertain "like"s or "dislike"s in any field of endeavor. Am certainly not in a position to prohibit anything relevant JavaScript. Do what thou wilt shall be the whole of the Law. Have yet to view a case where code will be "broken" by ```nameof``` not being a JavaScript feature. "robustness", as already mentioned, is a subjective adjective that is not capable of being objectively evaluated as to code itself. That description is based on preference or choice. In lieu of the proposal being specificed, use the posted code example of ```Object.keys()``` that "works". ``` function func1({userName = void 0} = {}) { console.assert(userName !== undefined, [{userName}, "property needs to be defined"]) } ``` provides a direct notification that the property value is required to be defined - though ````nameof``` will not prevent the value from being set as ```"undefined"``` or ```null``` or an empty string ```""```, etc., for which ```nameof``` does not solve the issue of certain specific sets of _characters_ being required as a value of the property. Note that the example code of "Function guard" posted thus far does not first check if ```options``` is passed at all, for which ```nameof``` will not provide any asssitance. Usually try to meet requirement by means already available (shipped; implemented) in FOSS browsers. Have no interest in TypeScript (or, in general, any third-party JavaScript library not shipped with FOSS bbrowsers) or using an IDE. FWIW, have no objection to the proposal.
guest271314 at gmail.com (2019-06-14T20:38:03.990Z)
Am neither for nor against the proposal. Do not entertain "like"s or "dislike"s in any field of endeavor. Am certainly not in a position to prohibit anything relevant JavaScript. Do what thou wilt shall be the whole of the Law. Have yet to view a case where code will be "broken" by ```nameof``` not being a JavaScript feature. "robustness", as already mentioned, is a subjective adjective that is not capable of being objectively evaluated as to code itself. That description is based on preference or choice. In lieu of the proposal being specificed, use the posted code example of ```Object.keys()``` that "works". ``` function func1({userName = void 0} = {}) { console.assert(userName !== undefined, [{userName}, "property needs to be defined"]) } ``` provides a direct notification that the property value is required to be defined - though ````nameof``` will not prevent the value from being set as ```"undefined"``` or ```null``` or an empty string ```""```, etc., for which ```nameof``` does not solve the issue of certain specific sets of _characters_ being required as a value of the property. Note that the example code of "Function guard" posted thus far does not first check if ```options``` is passed at all, for which ```nameof``` will not provide any asssitance. Usually try to meet requirement by means already available in FOSS browsers. Have no interest in TypeScript or using an IDE. FWIW, have no objection to the proposal.