Comments in code with an URL

just a small issue:

I use two slashes in my code to add a comment to a function. Just run into a problem (function not working anymore) because I had a URL like http://my.domain.com in the comment.
From other programming languages I had in mind that a line starting with // will not be interpreted whatever content is in there. But TBX has trouble with the full url.

	// construct all needed attributes for the CURL command
	// this version is optimised for the model gpt-3.5-turbo
	// the URL should be https://api.openai.com/v1/chat/completions

this comment will break my code.

1 Like

Currently, // both begins and terminates a comment.

I hadn’t foreseen that URLS would do this, but of course they do! I think we’ll abolish terminating a comment with //

4 Likes