Title: [spec] Parameter properties with question marks and initializers are not clearly specified · Issue #541 · microsoft/TypeScript · GitHub
Open Graph Title: [spec] Parameter properties with question marks and initializers are not clearly specified · Issue #541 · microsoft/TypeScript
X Title: [spec] Parameter properties with question marks and initializers are not clearly specified · Issue #541 · microsoft/TypeScript
Description: class C { constructor(public x?, public y = 1) { } } The spec does not clearly explain whether x and y are optional properties of C. The old compiler treats them as required properties, but optional parameters. I am not sure this makes s...
Open Graph Description: class C { constructor(public x?, public y = 1) { } } The spec does not clearly explain whether x and y are optional properties of C. The old compiler treats them as required properties, but optiona...
X Description: class C { constructor(public x?, public y = 1) { } } The spec does not clearly explain whether x and y are optional properties of C. The old compiler treats them as required properties, but optiona...
Opengraph URL: https://github.com/microsoft/TypeScript/issues/541
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[spec] Parameter properties with question marks and initializers are not clearly specified","articleBody":"``` TypeScript\nclass C {\n constructor(public x?, public y = 1) { }\n}\n```\n\nThe spec does not clearly explain whether x and y are optional properties of C. The old compiler treats them as required properties, but optional parameters. I am not sure this makes sense.\n","author":{"url":"https://github.com/mhegazy","@type":"Person","name":"mhegazy"},"datePublished":"2014-08-26T21:10:45Z","url":"https://github.com/microsoft/TypeScript/issues/541"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:36de8ecb-c5cc-ce52-9bf9-3bdecd72a0c6 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D0B0:3C21B:850D4A:ADA49C:6B00DA94 |
| html-safe-nonce | be1a432435bf71c7b7b0681122496584e6200bb72161bac2ae278ce98816882b |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEMEIwOjNDMjFCOjg1MEQ0QTpBREE0OUM6NkIwMERBOTQiLCJ2aXNpdG9yX2lkIjoiMjYxNDg1NzY5MTY4MzY3NDc3MiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | bc273d305b8215f72f324dc881bbfe26850f9712f36782c2d56573df1c7cf7f7 |
| hovercard-subject-tag | issue:41222594 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/microsoft/TypeScript/541/issue_layout |
| twitter:image | https://opengraph.githubassets.com/45a5cd67c83e691296ed63103a9cf313e3322dd6f0fe205dd6e0a844969c1eb7/microsoft/TypeScript/issues/541 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/45a5cd67c83e691296ed63103a9cf313e3322dd6f0fe205dd6e0a844969c1eb7/microsoft/TypeScript/issues/541 |
| og:image:alt | class C { constructor(public x?, public y = 1) { } } The spec does not clearly explain whether x and y are optional properties of C. The old compiler treats them as required properties, but optiona... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | mhegazy |
| hostname | github.com |
| expected-hostname | github.com |
| None | a481f62a1e04c9b9bdcb5628230682c66d59006f5b13b080f79cba84a176905b |
| turbo-cache-control | no-preview |
| go-import | github.com/microsoft/TypeScript git https://github.com/microsoft/TypeScript.git |
| octolytics-dimension-user_id | 6154722 |
| octolytics-dimension-user_login | microsoft |
| octolytics-dimension-repository_id | 20929025 |
| octolytics-dimension-repository_nwo | microsoft/TypeScript |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 20929025 |
| octolytics-dimension-repository_network_root_nwo | microsoft/TypeScript |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 84c8c5cc25e2fb7f2308428458538436baecc6d2 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width