René's URL Explorer Experiment


Title: Do not use `__` before garbage collection API · Issue #1648 · AssemblyScript/assemblyscript · GitHub

Open Graph Title: Do not use `__` before garbage collection API · Issue #1648 · AssemblyScript/assemblyscript

X Title: Do not use `__` before garbage collection API · Issue #1648 · AssemblyScript/assemblyscript

Description: Copied from #1559 (comment) Description I want to propose to use a better notation for the public assembly script functions. There is no need to prepend __ before the end of the functions. Reasoning Usually, __ is used before something t...

Open Graph Description: Copied from #1559 (comment) Description I want to propose to use a better notation for the public assembly script functions. There is no need to prepend __ before the end of the functions. Reasonin...

X Description: Copied from #1559 (comment) Description I want to propose to use a better notation for the public assembly script functions. There is no need to prepend __ before the end of the functions. Reasonin...

Opengraph URL: https://github.com/AssemblyScript/assemblyscript/issues/1648

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Do not use `__` before garbage collection API ","articleBody":"_Copied from https://github.com/AssemblyScript/assemblyscript/pull/1559#issuecomment-758299586_\r\n\r\n### Description\r\n\r\nI want to propose to use a better notation for the **public** assembly script functions. There is no need to prepend `__` before the end of the functions. \r\n\r\n### Reasoning\r\n\r\nUsually, `__` is used before something that should not be used, not something that every developer needs to call manually. TypeScript provides many ways to prevent name conflicting that are better than prefixing underscores.\r\n\r\nI would recommend renaming `__collect` to `collect`. If someone wants these functions to have different names (rare), they can do:\r\n```ts\r\nimport { collect as as_collect } from '...'\r\n```\r\n\r\nUsing `__` and similar notations are used in languages like C that do not have any notion of namespace or module and the names conflict with each other. This is not certainly the case for AssemblyScript.\r\n\r\n### Example from other languages\r\n\r\nJulia, the only language I know that allows triggering garbage collection manually, uses GC.gc() function for triggering garbage collection. GC is a module (namespace) and gc is the function name.\r\n\r\nhttps://docs.julialang.org/en/v1/base/base/#Base.GC.gc\r\n\r\n\r\n### Potential Methods\r\n\r\n1) There was one suggested by @MaxGraey here: \r\nhttps://github.com/AssemblyScript/assemblyscript/pull/1559#issuecomment-758316798\r\n\r\n2) If I was the one who makes the decision, I would just use the power of TypeScript namespaces and modules. In TypeScript it is already possible to rename the functions using `as` when importing. ","author":{"url":"https://github.com/aminya","@type":"Person","name":"aminya"},"datePublished":"2021-01-30T23:20:24Z","url":"https://github.com/AssemblyScript/assemblyscript/issues/1648"}

react-profiling0
react-import-mapreact,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-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:81bb965c-cbe5-1f99-cf1e-e2c52cadd71a
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idBE1A:16A125:30DE94:414E84:6B009E64
html-safe-nonce45d954063e116dbae34cde82d1f87a10485a810de3f639cc785392b6e7fcf742
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCRTFBOjE2QTEyNTozMERFOTQ6NDE0RTg0OjZCMDA5RTY0IiwidmlzaXRvcl9pZCI6Ijg1ODc2NzY5MDEyODYzODczMDAiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac4484017405c58f517706e9a774fc431322e001b51fe54e2ed042f2d765fbbcc0
hovercard-subject-tagissue:797565493
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/AssemblyScript/assemblyscript/1648/issue_layout
twitter:imagehttps://opengraph.githubassets.com/598ede6e5e2af45b8d6c7091dfa6d2cccdf1428d6d9e3732b6698ab0294c33af/AssemblyScript/assemblyscript/issues/1648
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/598ede6e5e2af45b8d6c7091dfa6d2cccdf1428d6d9e3732b6698ab0294c33af/AssemblyScript/assemblyscript/issues/1648
og:image:altCopied from #1559 (comment) Description I want to propose to use a better notation for the public assembly script functions. There is no need to prepend __ before the end of the functions. Reasonin...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameaminya
hostnamegithub.com
expected-hostnamegithub.com
None52c95ce7e48016ae14399656b4ee812462b6f1fa28c5008c8394da64794c00b8
turbo-cache-controlno-preview
go-importgithub.com/AssemblyScript/assemblyscript git https://github.com/AssemblyScript/assemblyscript.git
octolytics-dimension-user_id28916798
octolytics-dimension-user_loginAssemblyScript
octolytics-dimension-repository_id105138356
octolytics-dimension-repository_nwoAssemblyScript/assemblyscript
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id105138356
octolytics-dimension-repository_network_root_nwoAssemblyScript/assemblyscript
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release1c9ddec8215f9a94e295c8310c3579b9c54ba31a
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/AssemblyScript/assemblyscript/issues/1648#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FAssemblyScript%2Fassemblyscript%2Fissues%2F1648
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FAssemblyScript%2Fassemblyscript%2Fissues%2F1648
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=AssemblyScript%2Fassemblyscript
Reloadhttps://github.com/AssemblyScript/assemblyscript/issues/1648
Reloadhttps://github.com/AssemblyScript/assemblyscript/issues/1648
Reloadhttps://github.com/AssemblyScript/assemblyscript/issues/1648
AssemblyScripthttps://github.com/AssemblyScript
assemblyscripthttps://github.com/AssemblyScript/assemblyscript
Codehttps://github.com/AssemblyScript/assemblyscript
Issues196 (196)https://github.com/AssemblyScript/assemblyscript/issues
Pull requests24 (24)https://github.com/AssemblyScript/assemblyscript/pulls
Actionshttps://github.com/AssemblyScript/assemblyscript/actions
Wikihttps://github.com/AssemblyScript/assemblyscript/wiki
Security and qualityhttps://github.com/AssemblyScript/assemblyscript/security
Insightshttps://github.com/AssemblyScript/assemblyscript/insights
https://github.com/AssemblyScript/assemblyscript
New issuehttps://github.com/login?return_to=https://github.com/AssemblyScript/assemblyscript/issues/1648
New issuehttps://github.com/login?return_to=https://github.com/AssemblyScript/assemblyscript/issues/1648
Do not use __ before garbage collection API https://github.com/AssemblyScript/assemblyscript/issues/1648#top
stalehttps://github.com/AssemblyScript/assemblyscript/issues?q=state%3Aopen%20label%3A%22stale%22
https://github.com/aminya
aminyahttps://github.com/aminya
on Jan 30, 2021https://github.com/AssemblyScript/assemblyscript/issues/1648#issue-797565493
#1559 (comment)https://github.com/AssemblyScript/assemblyscript/pull/1559#issuecomment-758299586
https://docs.julialang.org/en/v1/base/base/#Base.GC.gchttps://docs.julialang.org/en/v1/base/base/#Base.GC.gc
@MaxGraeyhttps://github.com/MaxGraey
Rewrite runtime, switch to tracing GC and bootstrap #1559 (comment)https://github.com/AssemblyScript/assemblyscript/pull/1559#issuecomment-758316798
https://github.com/dcodeIO
dcodeIOhttps://github.com/dcodeIO
on Jan 31, 2021https://github.com/AssemblyScript/assemblyscript/issues/1648#issuecomment-770444430
https://github.com/aminya
aminyahttps://github.com/aminya
on Feb 2, 2021https://github.com/AssemblyScript/assemblyscript/issues/1648#issuecomment-771295097
https://github.com/dcodeIO
dcodeIOhttps://github.com/dcodeIO
on Feb 2, 2021https://github.com/AssemblyScript/assemblyscript/issues/1648#issuecomment-771595338
https://github.com/dcodeIO
dcodeIOhttps://github.com/dcodeIO
on Feb 2, 2021https://github.com/AssemblyScript/assemblyscript/issues/1648#issuecomment-771862349
https://github.com/apps/github-actions
github-actionshttps://github.com/apps/github-actions
on Jun 2, 2021https://github.com/AssemblyScript/assemblyscript/issues/1648#issuecomment-852600331
github-actionshttps://github.com/apps/github-actions
stalehttps://github.com/AssemblyScript/assemblyscript/issues?q=state%3Aopen%20label%3A%22stale%22
on Jun 2, 2021https://github.com/AssemblyScript/assemblyscript/issues/1648#event-4828618945
github-actionshttps://github.com/apps/github-actions
completedhttps://github.com/AssemblyScript/assemblyscript/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
on Jun 9, 2021https://github.com/AssemblyScript/assemblyscript/issues/1648#event-4868172461
Sign up for freehttps://github.com/signup?return_to=https://github.com/AssemblyScript/assemblyscript/issues/1648
Sign in to commenthttps://github.com/login?return_to=https://github.com/AssemblyScript/assemblyscript/issues/1648
stalehttps://github.com/AssemblyScript/assemblyscript/issues?q=state%3Aopen%20label%3A%22stale%22
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.