-
Notifications
You must be signed in to change notification settings - Fork 45
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Definition in problem statement template? #112
Comments
After some changes to #113 , it is possible to select the language in Type;html(cpp), this way we can actually make the definition always use Java/ c++/ C# syntax in definition. Which is like the problem statement in statistics. So that is an alternative, make problem-desc always use Java by default, allow to change to c++ and maybe C# if it is really that different to Java. |
Currently my definition looks like this, except using c++ http://gist.github.com/vexorian/8177600 |
@vexorian I've reimplemented this functionality, it turns out it's not that complicated. Here's a simple description.
This renderer allows nested named and normal rendering, which may make the engine more powerful, This is a major rewrite, and may cause bugs, please help me test it. Also, we can remove the |
hmnn.
|
|
Does anyone else think this feature could be useful? Adding the definition section to the problem statement template.
Good things:
long
it can be a hint.Bad things:
problem-definition
template as a requirement for the problem-desc template. (Will template requirements automatically call a requirement if none is defined?) Since this requirement of an extra template will complicate things and configuration, that's why I am asking...Update:
In reality, it appears it is quite possible to make a template that works in all the C-like languages. Python and VB would need separate templates. It still requires us to have a separate problem-definition template for each language, though.
Update 2:
Python might be an issue to do even with a separate template. An alternative would be to make a different HTML renderer for each language. The python HTML renderer should turn integer type to "integer" as opposed to just empty. There could also be a method HTML renderer. This might be too much of an issue, indeed.
The text was updated successfully, but these errors were encountered: